package com.whc.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.whc.goods.domain.entity.Goods;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;


@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    List<Goods> selectByCondition(Goods goods);

    //查询降价商品
    List<Goods> selectCheaperGoods(long userId);

    void addGoodsWanters(long goodId);

    List<Goods> selectSoldGoods(long userId);

    List<Goods> selectBoughtGoods(long userId);
}
